package com.bzkj.inventory.domain.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

/**
 * @projectName: prt-wms
 * @package: com.bzkj.inventory.domain
 * @className: UpdateValidateDTO
 * @description: 批次管理更新失效日期档案
 * @author: C1309
 * @createDate: 2024年12月13日
 * @version: v1.0
 */
public class UpdateValidateDTO {

    /**
     * 物料主键
     */
    @JSONField(name = "cmaterialid")
    @JsonProperty("cmaterialid")
    private String cmaterialid;

    /**
     * 需要更新的失效日期
     */
    @JSONField(name = "dvalidate", format = "yyyy-MM-dd")
    @JsonProperty("dvalidate")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dvalidate;

    /**
     * 批次主键
     */
    @JSONField(name = "pk_batchcode")
    @JsonProperty("pk_batchcode")
    private String pkBatchCode;

    public String getCmaterialid() {
        return cmaterialid;
    }

    public void setCmaterialid(String cmaterialid) {
        this.cmaterialid = cmaterialid;
    }

    public Date getDvalidate() {
        return dvalidate;
    }

    public void setDvalidate(Date dvalidate) {
        this.dvalidate = dvalidate;
    }

    public String getPkBatchCode() {
        return pkBatchCode;
    }

    public void setPkBatchCode(String pkBatchCode) {
        this.pkBatchCode = pkBatchCode;
    }

    @Override
    public String toString() {
        return "UpdateValidateDTO{" +
                "cmaterialid='" + cmaterialid + '\'' +
                ", dvalidate=" + dvalidate +
                ", pkBatchCode='" + pkBatchCode + '\'' +
                '}';
    }
}
